//
//  FindDetailModel.m
//  Zaker
//
//  Created by dllo on 16/3/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FindDetailModel.h"

@implementation FindDetailModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"auther"]) {
        self.autherName = value[@"name"];
        self.autherImg = value[@"icon"];
    }
    if ([key isEqualToString:@"medias"]) {
        self.imgPath = [[value firstObject] objectForKey:@"url"];
        self.width = [[value firstObject] objectForKey:@"w"];
        self.height = [[value firstObject] objectForKey:@"h"];
    }
}

@end
